/*
 * Copyright 2013-2019 Xia Jun(3979434@qq.com).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 ***************************************************************************************
 *                                                                                     *
 *                        Website : http://www.farsunset.com                           *
 *                                                                                     *
 ***************************************************************************************
 */
package com.workcell.workdata.im.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * 收藏、笔记信息
 */
@Entity
@Table(name = "t_hoxin_note")
public class Note {

	public static final byte TEXT = 0;

	public static final byte IMAGE = 1;

	public static final byte VIDEO = 3;

	public static final byte FILE = 4;

	public static final byte MAP = 5;

	public static final byte LINK = 6;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private Long id;
	
	@Column(name = "uid",nullable = false)
	private Long uid;

	@Column(name = "title", length = 100)
	private String title;

	@Column(name = "text", length = 1000)
	private String text;

	@Column(name = "content",nullable = false)
	private String content;

	@Column(name = "format", length = 1,nullable = false)
	private Byte format;

	@Column(name = "extra",nullable = false)
	private String extra;

	@Column(name = "create_time",nullable = false)
	private Date createTime;

	@Column(name = "update_time",nullable = false)
	private Date updateTime;
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getExtra() {
		return extra;
	}

	public void setExtra(String extra) {
		this.extra = extra;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Byte getFormat() {
		return format;
	}

	public void setFormat(Byte format) {
		this.format = format;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}


}
